-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nrf_security: Fix data cache buffer size in Cracen #19827
Conversation
The input variable in the function sx_blkcipher_ecb_simple is a pointer and not an array. So sizeof cannot be used to determine the array size. Replace this with the input_size variable which contains the correct iput size of the buffer. Signed-off-by: Georgios Vasilakis <[email protected]>
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: e7ec5b7903f96bda4b91e5cf2e141d2b1d69b786 more detailssdk-nrf:
Github labels
List of changed files detected by CI (1)
Outputs:ToolchainVersion: b77d8c1312 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😮 (BTW it also wouldn't work even if input
were declared as an array in the function parameters, sizeof() still returns the size of the pointer in that case.)
You are right of course, if it is a function parameter and not a local array it returns the pointer size. |
The input variable in the function sx_blkcipher_ecb_simple is a pointer and not an array. So sizeof cannot be used to determine the array size. Replace this with the input_size variable which contains the correct iput size of the buffer.